﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuickWeather.Core
{
    public class WeatherUpdatedEventArgs : EventArgs
    {
        public WeatherUpdatedEventArgs()
        {
            this.UpdateDateTime = DateTime.Now;
        }

        public WeatherUpdatedEventArgs(Weather newWeather)
        {
            this.Weather = newWeather;
            this.UpdateDateTime = DateTime.Now;
        }

        public override string ToString()
        {
            return base.ToString();
        }
        /// <summary>
        /// Gets fresh Weather info
        /// </summary>
        public Weather Weather { get; private set; }

        /// <summary>
        /// DateTime when weather updated from the server
        /// </summary>
        public DateTime UpdateDateTime { get; private set; }
    }
}
